#include"server.hpp"
#include<memory>

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cout << "usage:./server ip port" << std::endl;
    }

    // 创建一个服务器对象
    std::unique_ptr<UDPServer> pserver(new UDPServer(argv[1], atoi(argv[2])));
    pserver->Init();
    pserver->Start();

    return 0;
}